package com.us.usws.site.ws.entity.indexes.index;

import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.JsonPropertyOrder;

import com.us.usws.model.domain.video.Video;

@JsonPropertyOrder({ "id", "title", "url", "snapshot" })
public class WSIndexChannelVideo {

	@JsonProperty("id")
	private String uid;

	@JsonProperty("title")
	private String name;

	@JsonProperty("url")
	private String videoInfoUrl;

	private String snapshot;

	/**
	 * construct from video, note below fields will leave as empty.
	 * videoInfoUrl
	 * snapshot
	 * @param v
	 */
	public WSIndexChannelVideo(Video v) {
		this.uid = v.getUid();
		this.name = v.getName();
	}

	/**
	 * @return the uid
	 */
	public String getUid() {
		return uid;
	}

	/**
	 * @param uid the uid to set
	 */
	public void setUid(String uid) {
		this.uid = uid;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the videoInfoUrl
	 */
	public String getVideoInfoUrl() {
		return videoInfoUrl;
	}

	/**
	 * @param videoInfoUrl the videoInfoUrl to set
	 */
	public void setVideoInfoUrl(String videoInfoUrl) {
		this.videoInfoUrl = videoInfoUrl;
	}

	/**
	 * @return the snapshot
	 */
	public String getSnapshot() {
		return snapshot;
	}

	/**
	 * @param snapshot the snapshot to set
	 */
	public void setSnapshot(String snapshot) {
		this.snapshot = snapshot;
	}

}
